body {
    margin: 0;
    padding: 20px;
    min-height: 100vh;
    background-color: #f5f5f5;
}

.container {
    max-width: 100%;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 40px);
}

.card {
    height: calc(100vh - 220px);
    margin: 0;
}

.card-body {
    padding: 0;
    height: calc(100% - 45px);
}

.CodeMirror {
    height: 100% !important;
    border-radius: 0 0 4px 4px;
}

.preview-container {
    height: 100%;
    border: none;
    border-radius: 0 0 4px 4px;
    padding: 20px;
    margin: 0;
    background: white;
    overflow: auto;
}

#preview iframe {
    width: 100%;
    height: 100% !important;
    border: none;
}

.btn-container {
    text-align: center;
    padding: 20px 0;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.filename-input {
    border: 1px solid #ced4da;
    border-radius: 4px;
    padding: 8px 12px;
    font-size: 16px;
    width: 400px;
    max-width: 100%;
}

.filename-input::placeholder {
    color: #6c757d;
    font-size: 14px;
}

.filename-input:focus {
    outline: none;
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13,110,253,.25);
}

.pdf-suffix {
    color: #666;
}

.row {
    margin: 0 -10px;
}

.col-md-6 {
    padding: 0 10px;
}

.footer {
    width: 100%;
    background-color: #2c3e50;
    color: white;
    text-align: center;
    padding: 15px 0;
    margin-top: 20px;
}

.footer-content {
    font-size: 14px;
}

/* 响应式样式 */
@media (max-width: 768px) {
    .btn-container {
        flex-direction: column;
        width: 100%;
    }
    
    .filename-input {
        width: 100%;
    }
    
    .card {
        height: auto;
        min-height: 300px;
        margin-bottom: 20px;
    }
    
    .row {
        flex-direction: column;
    }
} 